/* telnetConnectionHandler.h */

#ifndef telnetConnectionHandler_h
#define telnetConnectionHandler_h

#include <WinSock2.h>

/* Defines */
#define ACTIVE 1
#define INACTIVE 0

/* Structs */
typedef struct{
	SOCKET clientSocket;
	int isAuthorized;
	char* buffer;
	int bufferSize;
	int isActive;
} telnetConnectionT;

/* Prototypes */
void telnetListenLoop();
telnetConnectionT initNewTelnetConnection();
void handleTelnetConnection(telnetConnectionT *connection);

#endif